package com.qingcloud.df.executor.constant;

/**
 * 组件运行时所有配置key.
 *
 * @author wangjinnan
 */
public class RuntimeConfigKeyConstant {

    private RuntimeConfigKeyConstant() {
    }

    /**
     * 绑定的IP的key.
     */
    public static final String BIND_IP_KEY = "bindIp";

    /**
     * 绑定的端口key.
     */
    public static final String BIND_PORT_KEY = "bindPort";

    /**
     * 唯一连接ID key.
     */
    public static final String CHANNEL_ID_KEY = "channelId";

    /**
     * 开发环境标识
     */
    public static final String DEV_ENV = "dev";

    /**
     * 生产环境标识
     */
    public static final String PRO_ENV = "pro";

    /**
     * 实例定时任务key
     */
    public static String getInstanceSchedulerKey(Integer jobId, Integer instanceId) {
        return "/qingcloud/job" + jobId + "/instance" + instanceId;
    }

}
